/*
 * Copyright 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
 */
package com.wei;

/**
 * Description:
 *
 * @author wzz
 * @since: 1.0
 * Create Date Time: 2018/11/27 16:17
 * Update Date Time:
 */
public class Test extends Thread {

    int count = 5;
    public void run(){
         count--;
        System.out.println(count);
    }

    public static void main(String[] args) {
        Thread t1 = new Thread(new Test(),"t1");
        Thread t2 = new Thread(new Test(),"t2");
        Thread t3 = new Thread(new Test(),"t3");
        Thread t4 = new Thread(new Test(),"t4");
        Thread t5 = new Thread(new Test(),"t5");

        t1.start();
        t2.start();
        t3.start();
        t4.start();
        t5.start();
    }
}
